package org.fuys.coder.domain.auth.model.vo.permission;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.domain.auth.model.vo.permission
 * @className: RoleTypeVO
 * @author: WangJing
 * @description: 角色类型枚举
 * @date: 2024/7/11 11:25
 * @version: 1.0
 */
public enum RoleTypeVO {

    ROOT(1){
        @Override
        public int getRoleId() {
            return 1;
        }
    },
    RESIDENTADMIN(2) {
        @Override
        public int getRoleId() {
            return 2;
        }
    },
    ADMINISTRATOR(3){
        @Override
        public int getRoleId() {
            return 3;
        }
    },
    AUDITOR(4){
        @Override
        public int getRoleId() {
            return 4;
        }
    };

    private int idx;
    RoleTypeVO(int idx){
        this.idx=idx;
    }

    public int getRoleId(){
        return this.idx;
    }

}
